<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@taglib prefix="fnc" uri="http://samplefn" %>
<s:layout-render name="/layout_template.jsp" nadpis="vehicle.detailsHeading">
    <s:layout-component name="telo">
        <div id="form">
        <div id="formtitle"><f:message key="vehicle.identification"/></div>                  
        <div class="row"><span class="col1">ID:&nbsp;</span><span class="col2"><c:out value="${actionBean.vehicle.id}"/></span></div>
        <div class="row"><span class="col1"><f:message key="vehicle.makerForm"/></span><span class="col2"><c:out value="${actionBean.vehicle.carProducer}"/></span></div>
        <div class="row"><span class="col1"><f:message key="vehicle.modelForm"/></span><span class="col2"><c:out value="${actionBean.vehicle.carModel}"/></span></div>
        <div class="row"><span class="col1"><f:message key="vehicle.yearForm"/></span><span class="col2"><c:out value="${actionBean.vehicle.yearOfManufacture}"/></span></div>
        <div class="row"><span class="col1"><f:message key="vehicle.engineForm"/></span><span class="col2"><c:out value="${actionBean.vehicle.engineType}"/></span></div>
        <div class="row"><span class="col1"><f:message key="vehicle.vinForm"/></span><span class="col2"><c:out value="${actionBean.vehicle.vin}"/></span></div>
        <div class="row"><span class="col1"><f:message key="vehicle.licensePlateForm"/></span><span class="col2"><c:out value="${actionBean.vehicle.stateLicencePlate}"/></span></div>
        <div id="formtitle" class="row"><f:message key="vehicle.driavenStatus"/></div>   
        <div class="row"><span class="col1"><f:message key="vehicle.numberKmForm"/></span><span class="col2"><c:out value="${actionBean.vehicle.numberOfKms}"/></span></div> 
        <div class="row"><span class="col1"><f:message key="vehicle.statusForm"/></span><span class="col2"><f:message key="VehicleStatus.${actionBean.vehicle.status}"/></span></div>  
        <div class="row"><span class="col1"><f:message key="vehicle.availibleForForm"/></span><span class="col2"><f:message key="EmployeePosition.${actionBean.vehicle.availableForPositions}"/></span></div>  
        <div id="formtitle" class="row"><f:message key="vehicle.checks"/></div>
        <br>
        <s:link class="button" beanclass="cz.muni.fi.pa165.carpark.rest.client.VehicleActionBean" event="storno"><f:message key="back"/></s:link>
        </div>
    </s:layout-component>
</s:layout-render>


